#include <memory>
#include "tcpClient.hpp"

static void Usage(const char *args)
{
    cout << "\nUsage:\n\t" << args << " serverip serverport\n\n";
}
// ./tcpClient serverip serverport
int main(int argc, char *argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }
    string serverip = argv[1];
    uint16_t serverport = atoi(argv[2]);
    
    unique_ptr<TcpClient> tcli(new TcpClient(serverip, serverport));

    tcli->initClient();
    tcli->start();

    return 0;
}





























